package com.zhdl.modules.autopick.service.impl;

import com.zhdl.modules.autopick.entity.WestData;
import com.zhdl.modules.autopick.repository.WestDataRepository;
import com.zhdl.modules.autopick.service.WestDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class WestDataServiceImpl implements WestDataService {

    public static WestData westData = new WestData();
    @Resource
    private WestDataRepository westDataRepository;

    /**
     * 添加到数据库
     */
    @Override
    public void addWestData(WestData westData) {
        westData.setId(1);
        westDataRepository.save(westData);
    }
}
